package com.uphone.kingmall.activity;

import android.view.View;
import android.widget.ImageView;
import android.widget.RadioButton;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.china.zhuoyue.R;
import com.scwang.smartrefresh.layout.SmartRefreshLayout;
import com.uphone.kingmall.adapter.PinPaiGuanAdpater;
import com.uphone.kingmall.base.BaseActivity;
import com.uphone.kingmall.utils.RecycleViewDivider;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * author : SuMeng
 * e-mail : 986335838@qq.com
 * time   : 2019/02/28
 * desc   : 品牌馆列表页
 */
public class PinPaiGuanListActivity extends BaseActivity {
    @BindView(R.id.iv_back)
    ImageView ivBack;
    @BindView(R.id.radio_1)
    RadioButton radio1;
    @BindView(R.id.radio_2)
    RadioButton radio2;
    @BindView(R.id.radio_3)
    RadioButton radio3;
    @BindView(R.id.radio_4)
    RadioButton radio4;
    @BindView(R.id.listViewRV)
    RecyclerView listViewRV;
    @BindView(R.id.list_resfresh)
    SmartRefreshLayout listResfresh;

    @Override
    public int getLayoutContentId() {
        return R.layout.kingmall_activity_pingpaiguan_list;
    }

    @Override
    public void initView() {
        setStatusBar();
    }

    @Override
    public void initData() {
        PinPaiGuanAdpater pinPaiGuanAdpater = new PinPaiGuanAdpater();
        List<String> stringList = new ArrayList<>();
        for (int i = 0; i < 4; i++) {
            stringList.add("");
        }
        pinPaiGuanAdpater.setNewData(stringList);
        listViewRV.setLayoutManager(new LinearLayoutManager(PinPaiGuanListActivity.this));
        listViewRV.setAdapter(pinPaiGuanAdpater);
        listViewRV.addItemDecoration(new RecycleViewDivider(
                PinPaiGuanListActivity.this, LinearLayoutManager.VERTICAL, 10, getResources().getColor(R.color.colorTransparent)));
    }

    @OnClick({R.id.iv_back, R.id.radio_1, R.id.radio_2, R.id.radio_3})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.iv_back:
                onBackPressed();
                break;
            case R.id.radio_1:
                break;
            case R.id.radio_2:
                break;
            case R.id.radio_3:
                break;
        }
    }
}
